package com.itheima.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class SubComment {


    private Integer id;
    @NotEmpty
    private String content;
    @NotNull
    private Integer createUser;


    private String username;
    private String userPic;
    @JsonFormat(pattern = "yyyy年MM月dd日")
    private LocalDateTime createTime;//创建时间

    @NotNull
    private Integer fatherId;


}


